package org.i1510.wuyo.service;
import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;

import org.i1510.common.bean.PageBean;
import org.i1510.common.utils.web.ResultMapper;
import org.i1510.wuyo.po.Cate;

/**
 * @author Administrator
 *
 */
public interface  ICateService {
	/********************以下是标准接口*********************************************************/		
	/**
	*@Author Rambo
	*@Desc：存在即更新，否则为新增 根据主键来判断
	*@param cate
	*@param request
	*@return TODO
	*@Version  ICateService.java,v 1.1 2014-8-29 下午5:44:18 
	*/
	public ResultMapper save(Cate cate,HttpServletRequest request);
	/**
	*@Author Rambo
	*@Desc：删除数据(尽量使用伪删除功能deleteX)
	*@param docId
	*@return TODO
	*@Version  ICateService.java,v 1.1 2014-8-29 下午2:55:37 
	*/
	public ResultMapper delete(String docId);		
	/**
	*@Author Rambo
	*@Desc：根据ID查找
	*@param docId
	*@return TODO
	*@Version  ICateService.java,v 1.1 2014-8-29 下午2:57:26 
	*/
	public Cate findById(String docId);
	/**
	*@Author Rambo
	*@Desc：根据批量ID查找
	*@param docIds
	*@return TODO
	*@Version  ICateService.java,v 1.1 2014-8-29 下午2:57:48 
	*/
	public List<Cate> findByIds(List<String> docIds);
	/**
	*@Author Rambo
	*@Desc：cate分页处理
	*@param cate
	*@param pageBean
	*@return TODO
	*@Version  ICateService.java,v 1.1 2013-11-26 下午4:45:32 
	*/
	public List getPage(Cate cate,PageBean pageBean,Map conditions);
	/**
	*@Author Rambo
	*@Desc：获取总页数
	*@param cate
	*@return TODO
	*@Version  ICateService.java,v 1.1 2013-11-26 下午5:27:54 
	*/
	public int getPageCount(Cate cate,Map conditions);
	/********************以上是标准接口*********************************************************/	


	
}